Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Init "0-click connection" flow for the Ledger Live App #742

Merged
merged 9 commits into from
Oct 2, 2024

Conversation

kkosiorowska
Copy link
Contributor

@kkosiorowska kkosiorowska commented Sep 27, 2024

Closes #51

What has been done:

  • Trigger the connect wallet flow when application starts
  • Cache the last used account in local storage

@kkosiorowska kkosiorowska self-assigned this Sep 27, 2024
Copy link

netlify bot commented Sep 27, 2024

Deploy Preview for acre-dapp-testnet ready!

Name Link
🔨 Latest commit f0ac21d
🔍 Latest deploy log https://app.netlify.com/sites/acre-dapp-testnet/deploys/66fce8143a493000089995cc
😎 Deploy Preview https://deploy-preview-742--acre-dapp-testnet.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

To support "0-click connection" flow for the Ledger Live app.
kkosiorowska and others added 2 commits September 30, 2024 11:26
We use the `@rehooks/local-storage` library, which saves undefined as a string. Therefore, we need to check the value of "undefined".
To update the conection flow.
@r-czajkowski r-czajkowski marked this pull request as ready for review September 30, 2024 14:23
We want the flow to be as close to the original as possible, so here we
simulate the session mechanism.
Copy link
Member

@nkuba nkuba left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We will follow-up in the feature branch.

@nkuba nkuba merged commit 3e04a2a into ledger-live-updates Oct 2, 2024
24 checks passed
@nkuba nkuba deleted the ledger-live-connection-flow branch October 2, 2024 08:25
nkuba added a commit that referenced this pull request Nov 6, 2024
This is an integration PR that adds the necessary changes for the dapp
to run on Ledger Live.

Refs: #730 #742 #763 #759, #760, #797, #780,
mezo-org/passport#143,
mezo-org/passport#144

### Important note
Changes can only be tested in a Ledger Live app built from source. See
the [Ledger Live repo](https://github.com/LedgerHQ/ledger-live), how to
build from source.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants